import { Type } from 'class-transformer'
import { IsNotEmpty, IsNumber, IsOptional, MaxLength } from 'class-validator'
import i18n, { i18nMessage } from '@/i18n'
import { ApiProperty } from '@nestjs/swagger'

export class MetaOpenApiBoardDataDelDto {
  @ApiProperty({ description: i18n.t('app-meta.dto.meta-open-api-board-data-del.12151143-0') })
  @IsNotEmpty()
  @MaxLength(64, { message: i18nMessage() })
  platform: string

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-open-api-board-data-del.12151143-1') })
  @MaxLength(64, { message: i18nMessage() })
  @IsOptional()
  project?: string

  @ApiProperty({ description: 'IDS' })
  @IsNumber()
  @Type(() => Number)
  @IsNotEmpty()
  id: number
}
